package com.wish.service.impl;

import com.wish.controller.TSfContractController;
import com.wish.dto.TsfContractDto;
import com.wish.entity.TSfContract;
import com.wish.mapper.TSfContractMapper;
import com.wish.service.ITSfContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 五组
 * @since 2021-04-08
 */
@Service
public class TSfContractServiceImpl extends ServiceImpl<TSfContractMapper, TSfContract> implements ITSfContractService {

    @Resource
    private TSfContractMapper tSfContractMapper;

    @Override
    public List<TSfContract> contracts(TsfContractDto tsfContractDto) {
        return tSfContractMapper.contracts(tsfContractDto);
    }

    @Override
    public TSfContract getOneById(Integer id) {
        return tSfContractMapper.getOneById(id);
    }
}
